package com.xf.system.http.vo.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


/**
 * @author xiefengf
 */
@Schema(description = "部门信息树形结构返参视图")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeptTreeVO {

    @Schema(description = "部门id")
    private Long id;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "父部门id")
    private Long parentId;

    @Schema(description = "父部门名称")
    private String parentName;

    @Schema(description = "显示顺序")
    private Integer orderNum;

    @Schema(description = "负责人")
    private String leader;

    @Schema(description = "联系电话")
    private String phoneNumber;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "部门状态（0正常 1停用）")
    private String status;

    @Schema(description = "部门状态显示名称")
    private String statusName;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "子节点")
    private List<DeptTreeVO> children;

}
